package com.example.test.serviceimpl;

import com.example.test.Bean.UserBean;
import com.example.test.mapper.UserMapper;
import com.example.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapperr;

    @Override
    public UserBean loginln(String name, String password) {
        return userMapperr.gitInfo(name,password);
    }

    @Override
    public List<UserBean> getAllUser() {
        return userMapperr.getAllUser();
    }

    @Override
    public int insertUser(UserBean user) {
        return userMapperr.insertUser(user);
    }
}
